package com.example.system.domain.exam.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDate;

@Getter
@Setter
@ToString
public class ExamQueryDTO {
    private Integer pageSize;

    private Integer pageNum;

    private String title;

    private LocalDate startTime;

    private LocalDate endTime;

    private Integer status;

    public Integer getPageSize() {
        return pageSize != null ? pageSize : 10;
    }

    public Integer getPageNum() {
        return pageNum != null ? pageNum : 1;
    }
}
